﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Practices.Composite.Presentation.Events;
using Scoreboard.Basement.Views;
using Scoreboard.Basement.ViewModels;

namespace Scoreboard.Basement.Events
{
	public class ShowDialogEvent : CompositePresentationEvent<ShowDialogEventArgs>
	{		
	}

	public class ShowDialogEventArgs
	{
		public ShowDialogEventArgs(DialogBase dialog)
		{
			Dialog = dialog;
		}

		public ShowDialogEventArgs(DialogParameters parameters)
		{
			Dialog = parameters.Dialog;			
			NeedsCaching = parameters.NeedsCaching;
		}

		public DialogBase Dialog { get; private set; }		
		public bool NeedsCaching { get; private set; }
		public DialogViewModel ViewModel 
		{
			get
			{
				return Dialog.ViewModel;
			}
		}
	}
}
